package com.tangyuan.ai.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tangyuan.ai.entity.model.AiDialogue;
import com.tangyuan.ai.entity.vo.AiDialogueVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AiDialogueMapper extends BaseMapper<AiDialogue> {

    Page<AiDialogueVo> getAiDialogueVoByUserId(Page<AiDialogue> page,@Param(Constants.WRAPPER) QueryWrapper<AiDialogue> wrapper);
}
